from pydantic_settings import BaseSettings
import os

class Settings(BaseSettings):
    ENV: str
    HCO_DB_PGSQL: str

    class Config:
        # 动态加载配置文件
        env_file = f"env/.env.{os.getenv('ENV', 'dev')}"  # 默认加载开发环境配置
        env_file_encoding = "utf-8"